<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="referrer" content="no-referrer">
    <link rel="stylesheet" href="./css/jinwenshouye.css">
    <link rel="stylesheet" href="./css/swiper-bundle.min.css">
    <title>锦文小说网-好看的女频言情小说网站，言情，无cp，穿越，重生，种田，宅斗宫斗，
    幻想，剧情向，影视，出版，免费，完结小说</title>
    <link rel="shortcut icon" href="./img/w01.jpg">
</head>
<body>
    <div class="head">
        <div class="w-left">
            <a class="one" href="wenxue.html">磨铁文学</a>
            <a class="two" href="hzhlaikan.html">来看中文网</a>
            <a class="three">锦文小说网</a>
            <a class="two" href="momoMain.html">墨墨言情网</a>
            <a class="two" href="bookIndex.html">逸云书院</a>
        </div>
        <div class="w-right">
            <a href="login.html">登录</a>
            <a href="login.html">注册</a>
            <a class="indexmobile" href="">
                手机版
                <div class="w-box">
                    <em class="dot-top"></em>
                    <ul>
                        <li>
                            <span class="w-scode">
                                <img src="./img/w1.jpg" alt="">
                            </span>
                            <div class="w-fr">
                                <span class="text1">磨铁阅读</span>
                                <span class="text2">让阅读更精彩</span>
                                <span class="imgs">
                                    <img src="./img/w1.png" alt="">
                                    <img src="./img/w2.png" alt="">
                                </span>
                            </div>
                        </li>
                        <li>
                            <span class="w-scode">
                                <img src="./img/w2.jpg" alt="">
                            </span>
                            <div class="w-fr">
                                <span class="text1">关注磨铁微信</span>
                                <span class="text2">微信关注扫一扫</span>
                            </div>
                        </li>
                    </ul>
                </div>
            </a>
        </div>
    </div>
    <div class="header-bg">
        <div class="logozone">
            <div class="innerbox">
                <div class="logo"></div>
                <div class="searchbox">
                    <div class="inner">
                        <input class="search" type="text" placeholder="找书">
                        <a class="searchbtn">
                            <i class="search-icon"></i>
                        </a>
                    </div>
                </div>
                <div class="mybookshelf">
                    <i></i>
                    我的书架
                </div>
            </div>
        </div>
    </div>
    <div class="firstnav">
        <ul class="fir-ul">
            <li class="curr">首页</li>
            <li class="">古代言情</li>
            <li class="">现代言情</li>
            <li class="">非言情</li>
            <li class="">
                <a href="jinwenshuku.html">书库</a>
            </li>
            <li class="">
                <a href="jinwenpaihang.html">排行</a>
            </li>
            <li class="">
                <a href="jinwenzuojia.html">作家专区</a>
            </li>
            <li class="">
                <a href="jinwenfuli.html">福利</a>
            </li>
            <li class="">动漫</li>
        </ul>
    </div>
    <div class="main">
        <div class="firstbox">
            <div class="skeleftbox">
                <div class="toptitle">
                    <h2>本周强推</h2>
                </div>
                <ul class="boxlist"></ul>
            </div>
            <div class="skerightbox">
                <div class="swiper firstSwiper">
                    <div class="swiper-wrapper"></div>
                    <div class="custom-swiper-button custom-next"></div>
                    <div class="custom-swiper-button custom-prev"></div>
                    <div class="swiper-pagination"></div>
                </div>
                <div class="banner-right"></div>    
            </div>
        </div>
        <div class="secondbox">
            <div class="sec-leftbox">
                <div class="listTitle">
                    <div class="mod-title">
                        <div class="title-bd">
                            <h2>热门推荐</h2>
                        </div>
                    </div>
                </div>
                <ul class="sec-ul"></ul>
            </div>
            <div class="sec-rightbox">
                <div class="topbox">
                    <div class="listTitle">
                        <div class="mod-title">
                            <div class="title-bd">
                                <h2>最新动态</h2>
                            </div>
                        </div>
                    </div>
                    <ul class="third-ul"></ul>
                </div>
                <div class="index-ad-r"></div>
            </div>
        </div>
        <div class="thirdbox">
            <div class="skeleftbox">
                <div class="toptitle">
                    <h2>版权展示</h2>
                </div>
                <div class="container">
                    <div class="book-container">
                    <div class="book-item pos-left" data-index="0">
                        <img src="https://cdn.motieimg.com/book/0018/186092/1.jpg?x-oss-process=style/book_middle" 
                            alt="嫁给前任他叔后，我成了团宠封面">
                    </div>
                    <div class="book-item pos-center" data-index="1">
                        <img src="https://cdn.motieimg.com/book/0017/174268/1.jpg?x-oss-process=style/book_middle" 
                            alt="恶女封面">
                    </div>
                    <div class="book-item pos-right" data-index="2">
                        <img src="https://cdn.motieimg.com/book/0018/186760/2.jpg?x-oss-process=style/book_middle" 
                            alt="恶毒皇后封面">
                    </div>
                    </div>
                    <div class="book-info">
                        <p class="book-title" id="currentTitle">恶女朵爷</p>
                        <p class="book-author" id="currentAuthor">油爆枇杷拌蛰面</p>
                        <p class="book-desc" id="currentDesc">
                            江湖人称‘朵爷’的关家小妹是芙蓉镇上的一朵奇葩。因打架不怂骂街不输而背负‘恶女’之名——贪财好色，嚣张跋扈，媒婆摇头地痞落泪，甘井子胡同小霸...
                        </p>
                    </div>
                    <div class="controls">
                        <button class="btn" id="detailBtn">
                            书籍详情
                        </button>
                    </div>
                </div>                
            </div>
            <div class="skerightbox">
                <div class="toptitle">
                    <h2>精品推荐</h2>
                </div>
                <div class="listbook"></div>
                <div class="line"></div>
            </div>
        </div>
        <div class="fourthbox">
            <div class="skeleftbox">
                <div class="listbookbox"></div>
                <div class="line"></div>
            </div>
            <div class="skerightbox">
                <div class="topbox1"></div>
            </div>
        </div>
        <div class="fifthbox">
            <div class="skeleftbox">
                <div class="toptitle">
                    <h2>编辑推荐</h2>
                </div>
                <ul class="box1"></ul>
            </div>
            <div class="skemiddlebox">
                <div class="listTitle">
                    <div class="mod-title">
                        <div class="title-bd">
                            <h2>影视风向</h2>
                        </div>
                    </div>
                </div>
                <div class="listbookbox2"></div>
                <div class="line"></div>
            </div>
            <div class="skerightbox">
                <div class="toptitle">
                    <h2>改编热推</h2>
                </div>
                <ul class="box2"></ul>
            </div>
        </div>
        <div class="sixthbox">
            <div class="skebox">
                <div class="listTitle">
                    <div class="mod-title">
                        <div class="title-bd">
                            <h2>精品完本</h2>
                        </div>
                    </div>
                </div>
                <ul class="box3"></ul>
            </div>
        </div>
        <div class="seventhbox">
            <div class="skeleftbox">
                <div class="mod-title">
                    <div class="title-bd">
                        <h2>最近更新</h2>
                        <div class="more">更多>></div>
                        <ul class="tab">
                            <li class="on">全部</li>
                            <li class="">免费</li>
                            <li class="">VIP</li>
                        </ul>
                    </div>
                </div>
                <div class="listupdate">
                    <div class="content-all">
                        <div class="clearfixer">
                            <span class="classis">分类</span>
                            <span class="name">书名</span>
                            <span class="newest">最新章节</span>
                            <span class="author">作者</span>
                            <span class="time">更新时间</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="skerightbox">
                <div class="listTitle">
                    <div class="mod-title">
                        <div class="title-bd">
                            <h2>联系客服</h2>
                        </div>
                    </div>
                </div>
                <div class="bd">
                    <p class="p1">
                        <span class="con-left">客服QQ：</span>
                        <span class="con-right">3469935628</span>
                        <a class="qqcontact"></a>
                        <br>
                        <span class="time">周一至周五9:00-18:00</span>
                    </p>
                    <p class="p2">
                        <span class="con-left">客服邮箱：</span>
                        <span class="con-right">kefu@motie.com</span>
                    </p>
                    <p class="p2">
                        <span class="con-left">客服座机：</span>
                        <span class="con-right">
                            010-82069306
                            <br>
                            周一至周五9:00-18:00
                        </span>
                    </p>
                    <p class="lc">
                        <a>常见问题</a>
                    </p>
                    <div class="editor">
                        <span class="conet-tit">联系编辑：</span>
                        <p class="con-bot">
                            <span class="sp1">请专注勾搭一个编辑,勿一稿多投</span>
                            <i class="shelf-box">云&nbsp;&nbsp;&nbsp;开 3476572672</i>
                        </p>
                        <p class="con-bot">
                            <i class="shelf-box">柠檬虾 3476572672</i>
                        </p>
                        <p class="con-bot">
                            <i class="shelf-box"></i>
                        </p>
                        <p class="con-bot">
                            <i class="shelf-box">招财猫 2058036648</i>
                        </p>
                        <p class="con-bot">
                            <i class="shelf-box">金小鱼 3407235716</i>
                        </p>
                        <p class="con-bot">
                            <i class="shelf-box">蝉&nbsp;&nbsp;&nbsp;衣   3476572672</i>
                        </p>
                        <p class="con-bot">
                            <i class="shelf-box">甜&nbsp;&nbsp;&nbsp;酱   （休假中，暂不收稿）</i>
                        </p>
                        <p class="con-bot">
                            <span class="sp1">版权合作</span>
                            <i class="shelf-box">小&nbsp;&nbsp;&nbsp;绿 3321634788</i>
                        </p>
                        <p class="con-bot">
                            <span class="sp1">支持组</span>
                            <i class="shelf-box">总编 六夕  1137749205</i>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="footer-default">
            <div>
                <p class="font">
                    <a>磨铁文学旗下网站：</a>
                    <a>来看中文网</a>
                    <a>锦文小说网</a>
                    <a>墨墨言情网</a>
                    <a>逸云书院</a>
                    <br>
                    <a>关于我们</a>
                    <a>联系我们</a>
                    <a>加入我们</a>
                    <a>帮助中心</a>
                    <a>网站地图</a>
                </p>
                <p class="announce">
                    Copyright © 2011-2025 LAIKAN.COM All Rights Reserved.  北京来看科技有限公司 版权所有
                    <br>
                    增值电信业务经营许可证 京B2-20190319  丨  网络出版服务许可
                    证 (署）网出证（京）字第325号  丨  
                    <a>京ICP备17040734号-1</a>
                    <br>
                    <a>网络违法犯罪举报</a>
                    丨
                    <a>中国互联网举报中心</a>
                    丨
                    <a>网络举报APP下载</a>
                    <br>
                </p>
                <div>
                    <a>
                        <img src="./img/w7.png" alt="">
                        <p>京公网安备 11010202009584号</p>
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div class="rfloat">
        <ul>
            <li class="r-1">
                <a>
                    <i></i>
                    <p class="rightSpan">最近阅读</p>
                </a>
            </li>
            <li class="r-2">
                <a>
                    <i></i>
                    <p class="rightSpan">充值</p>
                </a>
            </li>
            <li class="r-3">
                <a>
                    <i></i>
                    <p class="rightSpan">客服</p>
                </a>
            </li>
        </ul>
    </div>
</body>
<script src="./js/jinwenshouye.js"></script>
<script src="./js/swiper-bundle.min.js"></script>
<script>
    const books = [
      {
        id: 186092,
        img: "https://cdn.motieimg.com/book/0018/186092/1.jpg?x-oss-process=style/book_middle",
        title: "嫁给前任他叔后，我成了团宠",
        author: "陌上阿瓜",
        desc: "【甜宠+美食+大佬+马甲】帝师陈家落魄了，容色秾艳的陈娇娇从云端掉入泥沼。祖父畏罪自杀，父亲闲赋在家，未婚夫改娶堂妹，她还被许给前任的叔叔—..."
      },
      {
        id: 174268,
        img: "https://cdn.motieimg.com/book/0017/174268/1.jpg?x-oss-process=style/book_middle",
        title: "恶女朵爷",
        author: "油爆枇杷拌蛰面",
        desc: "江湖人称‘朵爷’的关家小妹是芙蓉镇上的一朵奇葩。因打架不怂骂街不输而背负‘恶女’之名——贪财好色，嚣张跋扈，媒婆摇头地痞落泪，甘井子胡同小霸..."
      },
      {
        id: 186760,
        img: "https://cdn.motieimg.com/book/0018/186760/2.jpg?x-oss-process=style/book_middle",
        title: "恶毒皇后不干了",
        author: "羡十二",
        desc: "【穿越+美食+轻松+甜宠】燕绥宁穿越了，开局一个恶毒皇后，臭名昭著，恶贯满盈。她的第一反应是，这个皇后我不能做！但作为镇国公府嫡长女，中宫之..."
      }
    ];

    // DOM元素
    const bookItems = document.querySelectorAll('.book-item');
    const titleEl = document.getElementById('currentTitle');
    const authorEl = document.getElementById('currentAuthor');
    const descEl = document.getElementById('currentDesc');
    const detailBtn = document.getElementById('detailBtn');
    
    // 状态变量
    let positions = ['pos-left', 'pos-center', 'pos-right'];
    let isAnimating = false;
    
    // 获取当前中心书籍ID
    function getCurrentBookId() {
        const centerIndex = parseInt(document.querySelector('.pos-center').dataset.index);
        return books[centerIndex].id;
    }
    
    // 跳转到详情页
    function goToDetail() {
        const id = getCurrentBookId();
        window.location.href = `./jinwen-bookDetail.html?id=${id}`;
    }
    
    // 更新书籍信息
    function updateInfo() {
      const centerIndex = parseInt(document.querySelector('.pos-center').dataset.index);
      const book = books[centerIndex];
      
      // 更新文本信息
      titleEl.textContent = book.title;
      authorEl.textContent = book.author;
      descEl.textContent = book.desc;
      
      // 绑定点击事件
      bookItems.forEach((item, index) => {
        const img = item.querySelector('img');
        if (img) {
          // 清除之前的点击事件，避免重复绑定
          img.onclick = null;
          // 只为中心书籍添加点击事件
          if (item.classList.contains('pos-center')) {
            img.onclick = goToDetail;
          }
        }
      });
      
      // 标题点击事件
      titleEl.onclick = goToDetail;
      
      // 详情按钮点击事件
      if (detailBtn) {
        // 先清除可能存在的旧事件
        detailBtn.onclick = null;
        detailBtn.onclick = goToDetail;
      }
    }
    
    // 轮换处理函数
    function rotate(direction) {
        if (isAnimating) return;
        isAnimating = true;
      
        // 移除所有位置类
        bookItems.forEach(item => positions.forEach(pos => item.classList.remove(pos)));
        
        // 调整位置数组
        if (direction === 'right') {
            positions.push(positions.shift());
        } else {
            positions.unshift(positions.pop());
        }
      
        // 应用新位置并更新信息
        setTimeout(() => {
            bookItems.forEach((item, i) => item.classList.add(positions[i]));
            setTimeout(() => { 
                updateInfo(); 
                isAnimating = false; 
            }, 500);
        }, 50);
    }
    
    // 暴露轮换函数
    window.rotateLeft = () => rotate('left');
    window.rotateRight = () => rotate('right');
    
    // 初始化页面
    updateInfo();
    
    // 自动轮换
    setInterval(() => rotateRight(), 2500);
</script>
</html>